package dk.mirasola.systemtraining.server;

import com.googlecode.objectify.ObjectifyService;
import dk.mirasola.systemtraining.server.entity.BiddingSession;
import dk.mirasola.systemtraining.server.entity.BiddingSet;
import dk.mirasola.systemtraining.server.entity.Board;
import dk.mirasola.systemtraining.server.entity.Suggest;
import dk.mirasola.systemtraining.server.entity.UserDistributionFilter;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class ObjectifyRegister implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        ObjectifyService.register(BiddingSet.class);
        ObjectifyService.register(BiddingSession.class);
        ObjectifyService.register(Board.class);
        ObjectifyService.register(UserDistributionFilter.class);
        ObjectifyService.register(Suggest.class);
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
    }
}
